package routers

import (
	"marx/controllers"

	"github.com/astaxie/beego"
)

func init() {
	beego.Router("/", &controllers.IndexController{})
	beego.Router("/login", &controllers.LoginController{})
	beego.Router("/registered", &controllers.RegisteredController{})
	beego.Router("/login/activate", &controllers.LoginController{}, "post:Activate")
	beego.Router("/login/islogin", &controllers.LoginController{}, "post:IsLogin")

	beego.Router("/search", &controllers.SearchController{})
	beego.Router("/search/source", &controllers.SearchController{}, "get:Getsource")
	beego.Router("/search/destination", &controllers.SearchController{}, "get:Getdest")
	beego.Router("/search/orders", &controllers.SearchController{}, "post:Getorder")
	beego.Router("/search/seat", &controllers.SearchController{}, "post:Getseat")

	beego.Router("/purchase", &controllers.PurchaseController{})
	beego.Router("/refund", &controllers.RefundController{})

	beego.Router("/message/list", &controllers.MessageController{}, "post:List")
	beego.Router("/message/delete", &controllers.MessageController{}, "post:Delete")

	beego.Router("/refund", &controllers.RefundController{})

}
